package org.marcesher.blogcodeformatter.formatters;

public class ExtensionMap {
	public static String getExtensionAlias(String extension){
		extension = extension.toLowerCase();
		if(extension.startsWith("cf")) return "cf";
		if(extension.startsWith("as")) return "as";
		if(extension.equals("cs")) return "csharp";
		if(extension.equals("rb")) return "ruby";
		if(extension.matches("xml|xhtml|xslt|html|htm|xhtm|mxml")) return "xml";
		if(extension.matches("text|txt|bat|shell|bash|ksh|sh|log|properties")) return "text";
		else return extension;
	}
}
